<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
	<TITLE></TITLE>
	<META NAME="GENERATOR" CONTENT="OpenOffice.org 3.2  (Unix)">
	<META NAME="CREATED" CONTENT="0;0">
	<META NAME="CHANGED" CONTENT="20101229;15563700">
	<STYLE TYPE="text/css">
	<!--
		@page { margin: 0.79in }
		P { margin-bottom: 0.08in }
		PRE { font-family: "Times New Roman" }
	-->
	</STYLE>
</HEAD>
<BODY LANG="el-GR" DIR="LTR">
<PRE LANG="en-US"> <FONT SIZE=5><B>Sine and cosine integral</B></FONT>

<FONT SIZE=5><SPAN LANG="en-US"><B>sincosint, sincosfg</B></SPAN></FONT>

<FONT SIZE=4><SPAN LANG="en-US"><SPAN STYLE="font-style: normal">Calculates s</SPAN><SPAN STYLE="font-style: normal">ine and cosine </SPAN><SPAN STYLE="font-style: normal">integrals,</SPAN></SPAN></FONT>
<FONT SIZE=4><SPAN LANG="en-US">for details see book of Hang T. Lau, “A Java Numerical Library for Scientists and engineers|”, Chapman &amp; Hall, 2004</SPAN></FONT>




<FONT SIZE=4><SPAN LANG="en-US"><B>Example: Can be run with F5 within the ScalaLab Editor (Ctrl-E to open the editor)</B></SPAN></FONT>

<SPAN LANG="en-US">import java.text.DecimalFormat;</SPAN>
<SPAN LANG="en-US">import numal.*;</SPAN>

<SPAN LANG="en-US">public class Test_sincosint extends Object {</SPAN>
<SPAN LANG="en-US">	</SPAN>
<SPAN LANG="en-US">	public static void main(String args[]) {</SPAN>

  <SPAN LANG="en-US">	double si[] = new double[1];</SPAN>
  <SPAN LANG="en-US">	double ci[] = new double[1];</SPAN>
  <SPAN LANG="en-US">	double f[] = new double[1];</SPAN>
  <SPAN LANG="en-US">	double g[] = new double[1];</SPAN>
  <SPAN LANG="en-US">	</SPAN>
  <SPAN LANG="en-US">	Special_functions.sincosint(1.0,si,ci);</SPAN>
  <SPAN LANG="en-US">	Special_functions.sincosfg(1.0,f,g);</SPAN>
    <SPAN LANG="en-US">DecimalFormat fiveDigit = new DecimalFormat(&quot;0.00000E0&quot;);</SPAN>
  <SPAN LANG="en-US">	System.out.println(&quot;SINCOSINT and SINCOSFG deliver:&quot;);</SPAN>
  <SPAN LANG="en-US">	System.out.println(&quot; SI(1) = &quot; + </SPAN>
      <SPAN LANG="en-US">fiveDigit.format(si[0]) + &quot;  CI(1) = &quot; +</SPAN>
      <SPAN LANG="en-US">fiveDigit.format(ci[0]) + &quot;\n  F(1) = &quot; +</SPAN>
      <SPAN LANG="en-US">fiveDigit.format(f[0]) + &quot;   G(1) = &quot; +</SPAN>
      <SPAN LANG="en-US">fiveDigit.format(g[0]));</SPAN>
<SPAN LANG="en-US">	}</SPAN>
<SPAN LANG="en-US">}</SPAN></PRE>
</BODY>
</HTML>